<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>title</title>
</head>
<body>
<div id="app">
    <a href="http://www.baidu.com" @click.prevent.once="fun">链接</a>
</div>

<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
<script>
    const app=new Vue({
        el:"#app",
        data:{
            msg:""
        },
        methods:{
            fun() {
                alert("a被点了");
            }
        }
    });
</script>
</body>
</html>